#include<iostream>
#include<string>
#include<cmath>
using namespace std;

int main() {
    string str;
    cin >> str;
    int arr[32];
    for (int i = 0; i < str.size(); i++)
    {
        arr[i] = str[i] - '0';
    }
    int index;
    for (int i = 0; i < 4; i++)
    {
        int num = 0;
        int sub_index = 0;
        for (int j = 7; j >= 0; j--)
        {
            index = i * 8 + j;
            num += arr[index] * pow(2, sub_index);
            sub_index++;
        }

        if (i != 3)
            cout << num << '.';
        else
            cout << num;
    }
    cout << endl;
    return 0;
}